package com.yiren.manager.form.elder;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yiren.core.form.GenericForm;
import com.yiren.manager.utils.CustomJsonDateDeserializer;
import com.yiren.manager.utils.CustomSimpleDateDeserializer;

public class YrLeaveHospitalAdvaForm extends GenericForm{

	private static final long serialVersionUID = 4137710785603968254L;

	private String leaveHospitalAdvaId;

	private String createId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date createTime;

	private String elderId;

 	@DateTimeFormat(pattern="yyyy-MM-dd")  
	private Date leaveDate;

	private String subjectRoomId;

	private String updateId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date updateTime;

	public String getLeaveHospitalAdvaId() {
		return leaveHospitalAdvaId;
	}

	public void setLeaveHospitalAdvaId(String leaveHospitalAdvaId) {
		this.leaveHospitalAdvaId = leaveHospitalAdvaId;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getElderId() {
		return elderId;
	}

	public void setElderId(String elderId) {
		this.elderId = elderId;
	}

	public Date getLeaveDate() {
		return leaveDate;
	}

	@JsonDeserialize(using=CustomSimpleDateDeserializer.class)
	public void setLeaveDate(Date leaveDate) {
		this.leaveDate = leaveDate;
	}

	public String getSubjectRoomId() {
		return subjectRoomId;
	}

	public void setSubjectRoomId(String subjectRoomId) {
		this.subjectRoomId = subjectRoomId;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
